package com.ljy.my_study.spring.tiny.study8.context;

import com.ljy.my_study.spring.tiny.study7.beans.factory.AbstractBeanFactory;

public class AbstractApplicationContext implements ApplicationContext{

	protected AbstractBeanFactory beanFactory;
	
	public AbstractApplicationContext(AbstractBeanFactory beanFactory) {
		this.beanFactory=beanFactory;
	}

	@Override
	public Object getBean(String name) throws Exception {
		return beanFactory.getBean(name);
	}
	
	
}
